﻿<%@ Page Title="" Language="C#" MasterPageFile="~/mobile/mobileMaster.master" AutoEventWireup="true"
    CodeFile="Article.aspx.cs" Inherits="mobile_Articles" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContentPlaceHolder" runat="Server">
    <asp:Literal runat="server" ID="PageTitle"></asp:Literal>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="head" runat="Server">
    <!-- OpenGraph meta -->
    <meta property="fb:app_id" content="384070111692466" />
    <meta property="og:type" content="Sport" />
    <meta property="og:image" content='<%= FacebookMetaTagHelper("0") %>?width=304&height=200' />
    <meta property="og:title" content='<%= FacebookMetaTagHelper("1") %>' />
    <meta property="og:description" content='<%= FacebookMetaTagHelper("2") %>' />
    <meta property="og:url" content="<%= hfCurrentURLLike.Value %>" />
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <asp:HiddenField ID="hfArticleID" runat="server" Value="0" />
    <asp:HiddenField ID="hfCategoryID" runat="server" Value="0" />
    <asp:HiddenField ID="hfCurrentURL" runat="server" Value="0" />
    <asp:HiddenField ID="hfCurrentURLLike" runat="server" Value="0" />
    <div style="color: #fff; padding: 20px 10px; margin-bottom: 0;">
        <h1>
            مقالات</h1>
    </div>
    <div class="content">
        <article class="underline">
            <div id="left" style="width: 100%;">
        <div class="single">
            <asp:Repeater runat="server" ID="rptArticles">
                <ItemTemplate>
                    <a href="<%# GenerateURLFacebookLike(DataBinder.Eval(Container.DataItem, "Articls_Title"),DataBinder.Eval(Container.DataItem, "Articls_ID")) %>">
                    </a>
                    <div class="active">
                        <h1>
                            <a href="javascript:void(0)">
                                <%# DataBinder.Eval(Container.DataItem, "Articls_Title")%></a></h1>
                    </div>
                    <!-- #date -->
                    <div class="content">
                        <div class="thumb " style='display: <%# checkVedioFlag(DataBinder.Eval(Container.DataItem, "Articls_Image").ToString())%>'>
                            <a href="../../../<%# DataBinder.Eval(Container.DataItem, "Articls_Image")%>" rel="prettyPhoto"
                                title="<%# DataBinder.Eval(Container.DataItem, "Articls_Title")%>">
                                <img src="../../<%# DataBinder.Eval(Container.DataItem, "Articls_Image")%>?width=348"
                                   style="width: 330px;" title="<%# DataBinder.Eval(Container.DataItem, "Articls_Title")%>" alt="<%# DataBinder.Eval(Container.DataItem, "Articls_Title")%>"
                                    class="imgf" />
                            </a>
                        </div>
                        <!-- #thumb -->
                        <p style="text-align: justify;">
                            <%# DataBinder.Eval(Container.DataItem, "Articls_FullDescription")%></p>
                        <div style="height: 20px; clear: both;">
                        </div>
                        <div style='display: <%# checkVedioFlag(DataBinder.Eval(Container.DataItem, "Articls_Vedio").ToString())%>'>
                            <iframe width="640" height="360" src="<%# RunVedio(DataBinder.Eval(Container.DataItem, "Articls_Vedio").ToString()) %>"
                                frameborder="0" allowfullscreen></iframe>
                        </div>
                        <p style="text-align: justify;">
                    </div>
                </ItemTemplate>
            </asp:Repeater>
            <div style="height: 10px; clear: both;">
            </div>
            <div style="float: left; direction: ltr">
                <asp:Repeater runat="server" ID="rptManageCategory">
                    <ItemTemplate>
                        <h3>
                            عدد المشاهدات :
                            <%# DataBinder.Eval(Container.DataItem, "Articls_Counter")%>
                            مشاهدة</h3>
                    </ItemTemplate>
                </asp:Repeater>
            </div>
            <div style="padding-top: 25px;width: 266px;">
                <!-- AddThis Button BEGIN -->
                <div class="addthis_toolbox addthis_default_style">
                    <a class="addthis_button_facebook_like" <%="fb:like:layout"%>="button_count"></a>
                    <a class="addthis_button_tweet"></a><a class="addthis_button_pinterest_pinit"></a>
                    <a class="addthis_button_google_plusone" <%="g:plusone:size"%>="medium"></a><a class="addthis_counter addthis_pill_style">
                    </a>
                </div>
                <script type="text/javascript">                    var addthis_config = { "data_track_addressbar": true };</script>
                <script type="text/javascript" src="//s7.addthis.com/js/300/addthis_widget.js#pubid=ra-51e4b0010b7f7db3"></script>
                <!-- AddThis Button END -->
            </div>
            <div style="height: 25px; clear: both;">
            </div>
            <div id="div_AdsRight">
                <div id="newAdsGoogle" style="height: 250px;text-align:center">
                   <script type="text/javascript"><!--
                       google_ad_client = "ca-pub-8724688346081785";
                       /* Mobile_Last_Page */
                       google_ad_slot = "2535881754";
                       google_ad_width = 300;
                       google_ad_height = 250;
                        //-->
                        </script>
                        <script type="text/javascript"
                        src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
                        </script>
                </div>
            </div>
            <div style="height: 25px; clear: both;">
            </div>
        </div>
        <div style="height: 15px; clear: both;">
        </div>
        <div id="video_holder" style="display: none;">
        </div> 
        <!-- #listing -->
    </div>
        </article>
    </div>
</asp:Content>
